﻿@model WebGioiThieu.Models.Tour
@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script src="../../../../Plugin/ckeditor/ckeditor.js"></script>
<style type="text/css">
   input[type="text"]{
    border: 1px solid rgb(204, 204, 204);
    padding: 2px;
    font-size: 1.2em;
    color: rgb(68, 68, 68);
    width: 500px;
}
textarea {
    min-height: 150px;
    min-width: 700px;
}
</style>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Cập nhật Tour</legend>
        @Html.HiddenFor(model => model.ID)
        @Html.HiddenFor(model => model.LuotXem)
        @Html.HiddenFor(model => model.NgayViet)
        @Html.HiddenFor(model => model.BiDanh)
        <div class="editor-label">
            @Html.LabelFor(model => model.TieuDe)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TieuDe, new {@class="titleContnet" })
            @Html.ValidationMessageFor(model => model.TieuDe)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.PhanModau)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.PhanModau)
            @Html.ValidationMessageFor(model => model.PhanModau)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.NoiDung)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.NoiDung, new { @id = "ckeContent",@rows="100" })
             <script type="text/javascript">
                 CKEDITOR.replace("ckeContent");
            </script>
           
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.MenuItemID)
        </div>
        <div class="editor-field">
            @Html.DropDownList("MenuItemID") 
            @Html.ValidationMessageFor(model => model.MenuItemID)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.HinhAnh)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.HinhAnh)
            @Html.ValidationMessageFor(model => model.HinhAnh)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.NoiBat)
            @Html.CheckBoxFor(model => model.NoiBat)
            @Html.ValidationMessageFor(model => model.NoiBat)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.TrangThai)
            @Html.CheckBoxFor(model => model.TrangThai)
            @Html.ValidationMessageFor(model => model.TrangThai)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.IsTour)
            @Html.EditorFor(model => model.IsTour)
            @Html.ValidationMessageFor(model => model.IsTour)
        </div><br/>
        <p>
            <input style="width:100px" type="submit" value="Lưu" />
        </p>

    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
